package game

import "time"

type BsProject struct {
	Id               uint      `gorm:"primarykey" json:"id"`
	Title            string    `gorm:"comment:赛事标题" json:"title" form:"title"` // 赛事主题
	Introduction     string    `gorm:"comment:赛事简介" json:"introduction" form:"introduction"`
	SignUpStartTime  time.Time `gorm:"column:sign_up_start_time;comment:报名开始时间" json:"signUpStartTime" form:"signUpStartTime"`
	SignUpEndTime    time.Time `gorm:"column:sign_up_end_time;comment:报名结束时间" json:"signUpEndTime" form:"signUpEndTime"`
	ContestStartTime time.Time `gorm:"column:contest_start_time;comment:比赛开始时间" json:"contestStartTime" form:"contestStartTime"`
	ContestEndTime   time.Time `gorm:"column:contest_end_time;comment:比赛结束时间" json:"contestEndTime" form:"contestEndTime"`
	CreateTime       time.Time `json:"createTime" form:"createTime" gorm:"->"`
	UpdateTime       time.Time `json:"updateTime" form:"updateTime" gorm:"->"`
	GameNum          int       `json:"gameNum" form:"gameNum" mapstructure:"-" gorm:"->"`
}

func (BsProject) TableName() string {
	return "bs_project"
}
